package com.css.bjdt_core.dnDzz.entity;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table;
import org.springframework.format.annotation.DateTimeFormat;

import lombok.Data;

@Data
@Table(value = "T_M_ZZINFO")
public class DnDzz {

	@Name
	@Column("DZZID")
	private String dzzid;
	@Column("DZZMC")
	private String dzzmc;
	@Column("DZZJC")
	private String dzzjc;
	@Column("ZZLB")
	private String zzlb;
	@Column("DZZLSGX")
	private String dzzlsgx;
	@Column("SJDZZID")
	private String sjdzzid;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Column("PZJLRI")
	private Date pzjlri;
	@Column("OPERATETIME")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date operatetime;
	@Column("DELETEFLAG")
	private int deleteflag;
	@Column("LTXBS")
	private String ltxbs;
	@Column("JGDWBS")
	private String jgdwbs;
	@Column("CSJDDZZBZ")
	private String csjddzzbz;
	@Column("CSSQDZZBZ")
	private String cssqdzzbz;
	@Column("XZSQDZZBZ")
	private String xzsqdzzbz;
	@Column("JZCDZZBZ")
	private String jzcdzzbz;
	@Column("LHDZZBZ")
	private String lhdzzbz;
	@Column("ORGANCODE")
	private String organcode;
	@Column("ORGANTYPE")
	private String organtype;
	@Column("OPERATOR")
	private String operator;
	@Column("ZT")
	private String zt;
	@Column("ZTRQ")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date ztrq;
	@Column("SZDWID")
	private String szdwid;
	@Column("ORDERNUM")
	private String ordernum;
	private String sjdzzmc;
	private boolean checked;
	private String dzzStateName;
	private boolean isParent;
	private String dwId;

	public void setIsParent(boolean isParent) {
		this.isParent = isParent;
	}

	/*lb.dmcpt as zlbc,
	zgx.dmcpt as dzzlsgxc,
	--wgx.dmcpt as dwlsgxc
	wlb.dmcpt as dwlbc*/

	//@Column("DWMC")
	@Readonly
	private String dwmc;

	//@Column("ZLBC")
	@Readonly
	private String zlbc;

	//@Column("DZZLSGXC")
	@Readonly
	private String dzzlsgxc;

	//@Column("DWLBC")
	@Readonly
	private String dwlbc;

	//@Column("DWLSGXC")
	@Readonly
	private String dwlsgxc;

	//@Column("SJDZZJC")
	@Readonly
	private String sjdzzjc;
}
